package drytools.site.css;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ColorsSelections {
	String []namedColorsNames = { "aqua", "black", "blue", "fuchsia", "gray",
			"green", "lime", "maroon", "navy", "olive", "purple", "red",
			"silver", "teal", "white", "yellow" };

	String[] paletteNeutrals = {
	 "#EEEEEE",
	 "#FFFFFF",
	 "#F9F7ED",
	 "#FFFF88",
	 "#CDEB8B",
	 "#C3D9FF",
	 "#36393D"};
	String[] paletteBold = {
	 "#FF1A00",
	 "#CC0000",
	 "#FF7400",
	 "#008C00",
	 "#006E2E",
	 "#4096EE",
	 "#FF0084"};
	String[] paletteMuted = {
	 "#B02B2C",
	 "#D15600",
	 "#C79810",
	 "#73880A",
	 "#6BBA70",
	 "#3F4C6B",
	 "#356AA0",
	 "#D01F3C"};
	
	List<String> namedColors;

	List<List<String>> currentPaletteRows;

	List<List<String>> webPaletteRows;

	List<Palette> web2palettes;
	
	public List<List<String>> getCurrentPaletteRows() {
		if (currentPaletteRows == null) {
			currentPaletteRows = new ArrayList<List<String>>();
			currentPaletteRows.add(Arrays.asList(namedColorsNames));
			
			
		}
		return currentPaletteRows;
	}

	public void setCurrentPaletteRows(List<List<String>> currentPaletteRows) {
		this.currentPaletteRows = currentPaletteRows;
	}

	public List<List<String>> getWebPaletteRows() {
		return webPaletteRows;
	}

	public void setWebPaletteRows(List<List<String>> webPaletteRows) {
		this.webPaletteRows = webPaletteRows;
	}

	public List<String> getNamedColors() {
		if (namedColors == null) {
			namedColors = Arrays.asList(namedColorsNames);
		}
		return namedColors;
	}

	public List<Palette> getWeb2palettes() {
		if (web2palettes == null) {
			web2palettes = new ArrayList<Palette>();
			web2palettes.add(new Palette(paletteNeutrals, "paletteNeutrals"));
			web2palettes.add(new Palette(paletteBold, "paletteBold"));
			web2palettes.add(new Palette(paletteMuted, "paletteMuted"));
		}
		return web2palettes;
	}

	public void setWeb2palettes(List<Palette> web2palettes) {
		this.web2palettes = web2palettes;
	}

}
